package com.hz.ruoyilgorder.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hz.rouyigonggong.domain.LgSellerOrder;
import com.hz.rouyigonggong.domain.dto.LgSellerOrderBySellerIdDTO;
import org.apache.ibatis.annotations.Param;
//import org.apache.ibatis.annotations.Select;
//import org.springframework.data.jpa.repository.Query;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @version 1.0
 * @Author yzw
 * @Date 2025/3/5 9:43
 * @注释
 */
public interface LgSellerOrderMapper extends BaseMapper<LgSellerOrder> {

//    List<LgSellerOrderDTO> querylist(LgSellerOrderDTO entity);
//    LgSellerOrder   byId(Integer orderNumber);

//    @Query("SELECT COUNT(o) FROM LgSellerOrder o WHERE o.createTime BETWEEN :start AND :end")
    int countOrdersBetween(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end);
    public List<LgSellerOrderBySellerIdDTO> getLgSellerOrderBySellerId(Integer sellerId);
    public LgSellerOrderBySellerIdDTO getLgSellerOrderById(Integer orderId);

}
